//引入封装的公共的请求插件
import { GET, POST, UPLOAD } from '@/services/request.js'

export default {
	CartAdd(data = {}) {
		return POST({
			url: 'product/cart/add',
			params: data,
		})
	},
	CartIndex(data = {}) {
		return POST({
			url: 'product/cart/index',
			params: data,
		})
	},
	CartNums(data = {}) {
		return POST({
			url: 'product/cart/nums',
			params: data,
		})
	},
	AddrOrder(data = {}) {
		return POST({
			url: 'user/address/order',
			params: data,
		})
	},
	OrderData(data = {}) {
		return POST({
			url: 'product/cart/list',
			params: data,
		})
	},

	Confirm(data = {}) {
		return POST({
			url: 'product/order/confirm',
			params: data,
		})
	},
}
